package com.igoal.dao;

import java.util.List;

import com.igoal.entity.ComponentEnum;
import com.igoal.entity.UserCheer;

public interface UserCheerDAO extends GenericDao<UserCheer, Long> {

	UserCheer findByInfomration(Long userId, ComponentEnum component, Long componentId);

	boolean isCheerThis(Long userId, ComponentEnum component, Long componentId);

	int countCheerThisComponent(ComponentEnum component, Long componentId);

	List<UserCheer> getRandomeCheerList(Long userId, ComponentEnum component, Long componentId);

	List<UserCheer> getUserCheeredThisComponent(ComponentEnum component, Long componentId, int pageNumber);

}
